from tornado.web import url
import app.appliance.views as appliance

handlers = [

    url(r'/appliance', appliance.Index, name='appliance:index'),
    url(r'/appliance/upload', appliance.Upload, name='appliance:upload'),
    url(r'/appliance/view', appliance.View, name='appliance:view'),
    url(r'/appliance/([0-9]+)/delete', appliance.Delete, name='appliance:delete'),

    url(r'/appliance/([0-9]+)/set_useable', appliance.SetUseable,
        name='appliance:set_useable'),

    url(r'/appliance/([0-9]+)/set_private', appliance.SetPrivate,
        name='appliance:set_private'),

    url(r'/appliance/([0-9]+)/islocked', appliance.islockedToggle,
        name='appliance:islocked'),

    url(r'/appliance/([0-9]+)/isuseable', appliance.isuseableToggle,
        name='appliance:isuseable'),

    url(r'/appliance/catalog/([0-9]+)/tune_position', appliance.tuneCatalogPosition,
        name='appliance:catalog:tune_position'),


    url(r'/appliance/attr_set', appliance.AttrSet, name='appliance:attr_set'),

    # screenshot
    url( r'/appliance/screenshot/add', appliance.ScreenshotAdd,
         name='appliance:screenshot:add' ),

    url( r'/appliance/screenshot/management', appliance.ScreenshotManagement,
         name='appliance:screenshot:management' ),

    url( r'/appliance/screenshot/delete', appliance.ScreenshotDelete,
         name='appliance:screenshot:delete' ),

]
